package base.thread_JUC2.chapter01.demo011;

public class TestCase {
    public static void main(String[] args) {
        MyThreadGroup myThreadGroup = new MyThreadGroup("MyThreadGroup");
        Task task = new Task();

        for (int i = 0; i < 10; i++) {
            Thread thread = new Thread(myThreadGroup, task);
            thread.start();
        }

//        System.out.println("begin");
//        while (true){
//            try {
//                int result = 10/0;
//            } catch (Exception e) {
//                e.printStackTrace();
//                return;
//            }
//        }

    }

}
